package com.example.tvfoucssustom.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.tvfoucssustom.R;
import com.example.tvfoucssustom.base.BaseFragment;
import com.example.tvfoucssustom.util.DebugLog;

import static com.example.tvfoucssustom.util.DebugLog.LOG;

/**
 * Created by dasu on 2017/4/20.
 * <p>
 * 各类型干货的数据展示界面，
 */

public class MessageFragment extends BaseFragment {
    private static final String TAG = MessageFragment.class.getSimpleName();

    public MessageFragment() {
    }

    private Context mContext;


    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        this.mContext = context;
//        DebugLog.d(LOG+TAG + " ---- onAttach");

    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        DebugLog.d(LOG+TAG + " ---- onCreate");
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//        DebugLog.d(LOG+TAG + " ---- onCreateView");
        View view = inflater.inflate(R.layout.fragment_message, container, false);
        initView(view);
        return view;
    }


    private void initView(View view) {

    }


    @Override
    protected void onFragmentVisibleChange(boolean isVisible) {
//        DebugLog.d(LOG+TAG + " ---- onFragmentVisibleChange " + isVisible);
        if (isVisible) {

        } else {

        }
    }

    @Override
    protected void onFragmentFirstVisible() {
        //第一次显示，加载数据
//        DebugLog.d(LOG+TAG + " ---- onFragmentFirstVisible ");
    }
}
